package org.idea.qiyu.framework.marketing.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.idea.qiyu.framework.marketing.model.Marketing;

import java.util.List;

/**
 * @Author linhao
 * @Date created in 6:34 下午 2021/7/23
 */
@Mapper
public interface MarketingMapper {

    @Select("select * from t_marketing")
    List<Marketing> selectAll();

    @Select("select * from t_marketing where marketingId=#{marketingId} and validStatus=1")
    List<Marketing> selectByMarketingIds(@Param("marketingId") Integer marketingId);
}
